package arch.chameleon.module.security.realm.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

import arch.chameleon.module.web.AbstractUserController;

/**
 * 对于失效session的ajax请求处理
 * @author George
 *
 */
public class SessionInvalidAsyncController extends AbstractUserController {

	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		return rtnSessionExpiredView(sessionExpireMessage, null);
	}
	
	private String sessionExpireMessage;

	public void setSessionExpireMessage(String sessionExpireMessage) {
		this.sessionExpireMessage = sessionExpireMessage;
	}
}
